package com.yimi.yinhepda.adapter.RecycleAdapter;

import android.content.Context;

import com.yimi.yinhepda.R;
import com.pda.ym.base.CommonRecycleAdapter;
import com.pda.ym.base.CommonViewHolder;
import com.yimi.yinhepda.db.table.StorageInfoTable;

import java.util.List;

/**
 * @author lj
 * 分拨货区界面列表适配器
 */
public class StorageInfoAdapter extends CommonRecycleAdapter<StorageInfoTable> {

    public StorageInfoAdapter(Context context, List<StorageInfoTable> dataList) {
        super(context, dataList, R.layout.adapter_storage_info_item);
    }

    @Override
    public void bindData(CommonViewHolder holder, StorageInfoTable data, int position) {

        holder.setText(R.id.tv_storage_code, data.getStorageCode());
        holder.setText(R.id.tv_storage_name, data.getStorageName());
    }
}
